import { request } from '@/utils/request.js'


export function getUserAddress(data) {
	return request({
		url: "/api/system/address/getUserAddress",
		data: JSON.stringify(data)
	});
}

export function addUserAddress(data) {
	return request({
		url: "/api/system/address/addUserAddress",
		method: 'post',
		data: data
	});
}

export function modUserAddress(data) {
	return request({
		url: "/api/system/address/modUserAddress",
		method: 'post',
		data: data
	});
}

export function modUserAddressDefault(data) {
	return request({
		url: "/api/system/address/modUserAddressDefault",
		method: 'post',
		data: data
	});
}

export function delAddress(data) {
	return request({
		url: "/api/system/address/delUserAddress",
		method: 'post',
		data: data
	});
}